package com.cardone.persistent.support;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 路由配置
 * 
 * @author yaoht
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class RouterKeyConfig implements java.io.Serializable {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -7479994966518397665L;

	/**
	 * 子节点
	 */
	private List<RouterKeyConfig> childs;

	/**
	 * 默认键名
	 */
	private String defaultKey;

	/**
	 * 表达式
	 */
	private String expression;

	/**
	 * 键名集合
	 */
	private List<String> keys;

	/**
	 * 前缀
	 */
	private String prefix;

	/**
	 * 目录键名
	 */
	private String targetKey;
}